package com.youlai.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.system.model.entity.LpsOrderXcp;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.excel.LpsOrderXcpExcel;
import com.youlai.boot.system.model.query.LpsOrderXcpQuery;
import com.youlai.boot.system.model.vo.LpsOrderXcpVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 新产品Mapper接口
 *
 * @author lwb
 * @since 2025-07-14 16:24
 */
@Mapper
public interface LpsOrderXcpMapper extends BaseMapper<LpsOrderXcp> {

    /**
     * 获取新产品分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<LpsOrderXcpVO> getLpsOrderXcpPage(Page<LpsOrderXcpVO> page, LpsOrderXcpQuery queryParams);

    /**
     *
     * @param orderIds
     */
    void deleteByOrderIds(@Param("orderIds") List<Long> orderIds);

    /**
     *
     * @param orderId
     * @return
     */
    List<LpsOrderXcpExcel> getExcelList(Long orderId);

    /**
     *
     * @param orderXcpList
     */
    void batchInsert(@Param("list") List<LpsOrderXcp> orderXcpList);
}
